import request from '@/utils/request'

export function getAllNoticeByAccountId(data) {
  return request({
    url: '/notice/getAllNoticeByAccountId',
    method: 'get',
    params:data
  })
}

export function addAnnouncement(data) {
  return request({
    url: '/notice/addAnnouncement',
    method: 'post',
    data
  })
}

export function readAnnouncement(data) {
  return request({
    url: '/notice/readAnnouncement',
    method: 'post',
    data
  })
}

export function delAnnouncement(data) {
  return request({
    url: '/notice/delAnnouncement',
    method: 'delete',
    params: data
  })
}

export function updateAnnouncement(data) {
  return request({
    url: '/notice/updateAnnouncement',
    method: 'put',
    data
  })
}

export function getAllReadingNotice(data) {
  return request({
    url: '/notice/getAllReadingNotice',
    method: 'get',
    params:data
  })
}

export function getUnReadingNoticeByAccountId(data) {
  return request({
    url: '/notice/getUnReadingNoticeByAccountId',
    method: 'get',
    params:data
  })
}

export function delReadingNotice(data) {
  return request({
    url: '/notice/delReadingNotice',
    method: 'delete',
    params: data
  })
}



